package com.zb.zeus.system.api;

import com.zb.zeus.common.core.web.page.TableDataInfo;
import com.zb.zeus.system.api.domain.SysOrgBusiness;
import com.zb.zeus.system.api.factory.RemoteOrgFallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.cloud.openfeign.SpringQueryMap;
import org.springframework.web.bind.annotation.GetMapping;

/**
 * 组织服务
 *
 * @author zb.zeus
 */
@FeignClient(contextId = "remoteOrgService",
        value = "${feign.ref.service.zeus-system:zeus-system}",
        fallbackFactory = RemoteOrgFallbackFactory.class)
public interface RemoteOrgService {
    /**
     * 保存系统日志
     *
     * @param sysOrgBusiness 日志实体
     * @return 结果
     */
    @GetMapping("/orgBusiness/list")
    TableDataInfo list(@SpringQueryMap SysOrgBusiness sysOrgBusiness);

}
